package com.shycloud.mido.music.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huaban.analysis.jieba.SegToken;
import com.shycloud.mido.music.domain.MisHotHistory;
import com.shycloud.mido.music.dto.MisMusicCollectionDTO;
import com.shycloud.mido.music.vo.MisMusicVO;
import com.shycloud.mido.music.vo.MyCollectionVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MisHotHistoryMapper extends BaseMapper<MisHotHistory> {

	/**
	 * 检索曲集
	 *
	 * @param page
	 * @param process
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.shycloud.mido.music.vo.MyCollectionVO>
	 * @author nianhua.jiang
	 * @date 2020/7/1 18:58
	 */
	IPage<MisMusicCollectionDTO> searchCollection(@Param("page") Page page, @Param("process") List<SegToken> process, @Param("memberId") String memberId, @Param("isCustom") String flg);

	/**
	 * 检索曲目
	 *
	 * @param page
	 * @param keyword
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.shycloud.mido.music.vo.MisMusicVO>
	 * @author nianhua.jiang
	 * @date 2020/7/2 9:41
	 */
	IPage<MisMusicVO> searchMusic(@Param("page") Page page,
								  @Param("keyword") String keyword,
								  @Param("process") List<SegToken> process,
								  @Param("memberId") String memberId,
								  @Param("isCustom") String isCustom);
}